Skip to content

#317: Small allocation cleanups in parser, logging, and metadata conversion#331

Merged
kaklakariada merged 2 commits into
mainfrom
kaklakariada/issue317
Jun 2, 2026
Merged

#317: Small allocation cleanups in parser, logging, and metadata conversion#331
kaklakariada merged 2 commits into
mainfrom
kaklakariada/issue317

Conversation

@kaklakariada

Copy link
Copy Markdown
Contributor

Closes #317

@kaklakariada kaklakariada enabled auto-merge (squash) June 2, 2026 07:04
@sonarqubecloud

sonarqubecloud Bot commented Jun 2, 2026

Copy link
Copy Markdown

Comment on lines +43 to +48
@ParameterizedTest
@MethodSource("classNameFormats")
void testFormatWithClassName(final String sourceClassName, final String expectedContent) {
this.logRecord.setSourceClassName(sourceClassName);
final String formattedRecord = this.formatter.format(this.logRecord);
assertThat(formattedRecord, matchesTimeStamp(expectedContent));

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Combine 6 tests into one parameterized test

@pj-spoelders pj-spoelders left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@kaklakariada kaklakariada merged commit d80f26b into main Jun 2, 2026
7 checks passed
@kaklakariada kaklakariada deleted the kaklakariada/issue317 branch June 2, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Apply small allocation cleanups in parser, logging, and metadata conversion

2 participants